package OOday02.HomeWork.Animal;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/7 18:54
 */
public  class Fish extends Animal implements Swim{
    Fish(String name,int age,String color){
        super(name,age,color);
    }
    public void eat(){
        System.out.println(age+"岁的"+name+"正在吃东西");
    }
    public void swim(){
        System.out.println(age+"岁的"+name+"正在游泳");
    }
}
